import request from '@/utils/request'

// 查询采购入库信息列表
export function listWoodPurchaseIn(query) {
  return request({
    url: '/woodPurchase/woodPurchaseIn/list',
    method: 'get',
    params: query
  })
}

// 查询采购入库信息详细
export function getWoodPurchaseIn(inId) {
  return request({
    url: '/woodPurchase/woodPurchaseIn/' + inId,
    method: 'get'
  })
}

// 新增采购入库信息
export function addWoodPurchaseIn(data) {
  return request({
    url: '/woodPurchase/woodPurchaseIn',
    method: 'post',
    data: data
  })
}

// 修改采购入库信息
export function updateWoodPurchaseIn(data) {
  return request({
    url: '/woodPurchase/woodPurchaseIn',
    method: 'put',
    data: data
  })
}

// 删除采购入库信息
export function delWoodPurchaseIn(inId) {
  return request({
    url: '/woodPurchase/woodPurchaseIn/' + inId,
    method: 'delete'
  })
}

// 导出采购入库信息
export function exportWoodPurchaseIn(query) {
  return request({
    url: '/woodPurchase/woodPurchaseIn/export',
    method: 'get',
    params: query
  })
}
